package com.itheima.genericity_demo.wildcard_demo;
/*
    A - B - C
 */
public class Test3 {
    public static void main(String[] args) {
        // 单向链表
        Node<String> node1 = new Node<>();
        node1.num = "A";

        Node<String> node2 = new Node<>();
        node1.num = "B";

        Node<String> node3 = new Node<>();
        node1.num = "C";

        node1.next = node2;
        node2.next = node3;


        // 双向链表
    }
}

class Node<E>{
    E num;
    Node next;
}
